home *** CD-ROM | disk | FTP | other *** search
/ The Ultimate Frank Lloyd…ght - America's Architect / Ultimate Frank Lloyd Wright, The - America's Architect (1994)(Microsoft Home).iso / pre / flw / flwmm.dir / 00062_Script_62 < prev    next >
Text File  |  1994-11-15  |  7KB  |  268 lines

  1. on startMovie 
  2.   global lastUp, nextUp, lastMovie, reEntry, FrankNav, bFlag
  3.   global nowFrame, lastFrame, nowMovie, currMM, beenToHM
  4.   global dialogOn, mac, lastRoll, lastCast, doneInit
  5.   global glossDialog
  6.   global ltQT
  7.   
  8.   set ltQT = FALSE
  9.   set lastRoll = 0
  10.   set lastCast = ""
  11.   set glossdialog = the number of cast "glossDialog"
  12.   set dialogOn = FALSE
  13.   set lastFrame = "mmmai000000f°°"
  14.   set lastMovie = "FLWMM"
  15.   set currMM = "FLWMM"
  16.   set nowFrame = "mmmai000000f°°"
  17.   if doneInit <> TRUE then
  18.     initGlobals
  19.   end if
  20.   global btnsuccess
  21.   set btnsuccess = FALSE
  22.   --set the exitLock = FALSE
  23.   --- for seeAlso DLL ---------
  24.   
  25.   global seeAlsoObj,seeAlsoFlag
  26.   set the textFont of field "seeAlsoText" to "Helvetica"
  27.   --seeAlsoFlag will be set to FALSE in the FLWTOP
  28.   if mac <> TRUE then
  29.     if (seeAlsoFlag = FALSE) then
  30.       openXlib "LINKS"
  31.       if objectP(seeAlsoObj) then
  32.         seeAlsoObj(mDispose)
  33.       end if
  34.       set seeAlsoObj = LINKS(mNew)
  35.       seeAlsoObj(minitialize)
  36.       set seeAlsoFlag to TRUE
  37.     end if
  38.   end if
  39.   -------------------------------
  40.   
  41.   
  42. end startMovie
  43.  
  44. on initGlobals
  45.   global doneInit
  46.   global b1Up, b2Up, b3Up, b4Up, b5Up, b6Up, nullUp
  47.   global b1Dn, b2Dn, b3Dn, b4Dn, b5Dn, b6Dn, nullDn, bRest
  48.   set b1Up = the number of cast "btn1up"
  49.   set b2Up = b1up + 8
  50.   set b3Up = b1up + 16
  51.   set b4Up = b1up + 24
  52.   set b5Up = b1up + 32
  53.   set b6Up = b1up + 40
  54.   set b1Dn = the number of cast "btn1down"
  55.   set b2Dn = b1Dn + 8
  56.   set b3Dn = b1Dn + 16
  57.   set b4Dn = b1Dn + 24
  58.   set b5Dn = b1Dn + 32
  59.   set b6Dn = b1Dn + 40
  60.   set bRest = the number of cast "btnRest"
  61.   
  62.   set nullUp = the number of cast "nullBtn"
  63.   set nullDn = the number of cast "nullBtn"
  64.   
  65.   global swapSpnum
  66.   
  67.   global philX, siteX, patX, matX, typeX  
  68.   global philDx, siteDx, patDx, matDx, typeDx
  69.   global phiint,org, tec, dem, uni, bal, ref, lig, tru
  70.   global sitint,fla,hil, mou
  71.   global patint,geo, col,sou,mus,cul,nat
  72.   global matint,woo,sto,gla, bri,cop,con,rei
  73.   global typint,atr, hea, tow
  74.   
  75.   set swapSpnum  = 15
  76.   set phiint = "22,120,177,190"
  77.   set org = "22,119,219,246"
  78.   set tec = "22,119,250,269"
  79.   set dem = "22,119,276,294"
  80.   set uni = "22,119,302,319"
  81.   set bal = "22,119,328,344"
  82.   set ref = "22,119,354,372"
  83.   set lig = "22,119,380,396"
  84.   set tru = "22,119,401,431"
  85.   set sitint = "143,244,203,217"
  86.   set fla = "142,229,255,272"
  87.   set hil = "142,229,304,320"
  88.   set mou = "142,229,353,369"
  89.   set patint = "269,369,154,168"
  90.   set geo = "268,362,182,197"
  91.   set col = "268,362,224,241"
  92.   set sou = "228,362,266,283"
  93.   set mus = "228,362,312,329"
  94.   set cul = "228,362,338,353"
  95.   set nat = "228,362,364,381"
  96.   set matint = "394,498,144,158"
  97.   set woo = "392,484,187,204"
  98.   set sto = "392,484,217,243"
  99.   set gla = "392,484,247,263"
  100.   set bri = "392,484,278,293"
  101.   set cop = "392,484,303,331"
  102.   set con = "392,484,334,360"
  103.   set rei = "392,484,364,391"
  104.   set typint = "523,629,162,176"
  105.   set atr = "521,591,207,225"
  106.   set hea = "521,591,259,276"
  107.   set tow = "521,591,311,328"
  108.   
  109.   
  110.   set doneInit to TRUE
  111. end initGLobals
  112.  
  113. on seUnpup
  114.   
  115.   puppetSprite 3, FALSE
  116.   
  117.   repeat with i = 10 to 14
  118.     puppetSprite i, FALSE
  119.   end repeat
  120. end seUnpup
  121.  
  122. on Unpup
  123.   repeat with i = 1 to 24
  124.     puppetSprite i, FALSE
  125.   end repeat
  126. end Unpup
  127.  
  128. on mmrollCheck
  129.   global HMObj,HMOpenFlag
  130.   
  131.   set the castNum of sprite 7 to 33
  132.   set the castNum of sprite 8 to 37
  133.   set the castNum of sprite 9 to 40
  134.   set the castNum of sprite 10 to 43
  135.   set the castNum of sprite 11 to 46
  136.   set the castNum of sprite 12 to 49
  137.   set the castNum of sprite 6 to 4
  138.   
  139.   if rollOver(7) then
  140.     set the castNum of sprite 7 to 34
  141.     set the castNum of sprite 6 to 19
  142.     if the mouseDown then
  143.       set the castNum of sprite 7 to 32
  144.     end if
  145.     
  146.   else if rollOver(8) then
  147.     set the castNum of sprite 8 to 38
  148.     set the castNum of sprite 6 to 21
  149.     if the mouseDown then
  150.       set the castNum of sprite 8 to 36
  151.     end if
  152.     
  153.   else if rollOver(9) then
  154.     set the castNum of sprite 9 to 41
  155.     set the castNum of sprite 6 to 17
  156.     if the mouseDown then
  157.       set the castNum of sprite 9 to 39
  158.     end if
  159.     
  160.   else if rollOver(10) then
  161.     set the castNum of sprite 10 to 44
  162.     set the castNum of sprite 6 to 15
  163.     if the mouseDown then
  164.       set the castNum of sprite 10 to 42
  165.     end if
  166.     
  167.   else if rollOver(11) then
  168.     set the castNum of sprite 11 to 47
  169.     set the castNum of sprite 6 to 20
  170.     if the mouseDown then
  171.       set the castNum of sprite 11 to 45
  172.     end if
  173.     
  174.   else if rollOver(12) then
  175.     set the castNum of sprite 12 to 50
  176.     set the castNum of sprite 6 to 18
  177.     if the mouseDown then
  178.       set the castNum of sprite 12 to 48
  179.     end if
  180.   end if
  181.   
  182.   updateStage
  183.   
  184. end mmrollCheck
  185.  
  186. on mmsetPuppet
  187.   repeat with i = 6 to 16
  188.     puppetSprite i, TRUE
  189.   end repeat
  190. end mmsetPuppet
  191.  
  192. on mmhelpCheck
  193.   global lastRoll,lastCast
  194.   
  195.   if rollover(13) then
  196.     if lastRoll <> 0 then
  197.       set the castNum of sprite lastRoll to the number of cast lastCast
  198.     end if
  199.     set lastCast = "mm3Rt"
  200.     set lastRoll = 13
  201.     set the castNum of sprite 13 to the number of cast "mm3Up"
  202.     set the castNum of sprite 16 to the number of cast "help"
  203.     if the mouseDown then
  204.       set the castNum of sprite 13 to the number of cast "mm3Dn"
  205.     end if
  206.   else if rollover(14)  then
  207.     if lastRoll <> 0 then
  208.       set the castNum of sprite lastRoll to the number of cast lastCast
  209.     end if
  210.     set lastCast = "mm2Rt"
  211.     set lastRoll = 14
  212.     set the castNum of sprite 16 to the number of cast "index"
  213.     set the castNum of sprite 14 to the number of cast "mm2Up"
  214.     if the mouseDown then
  215.       set the castNum of sprite 14 to the number of cast "mm2Dn"
  216.     end if
  217.   else if rollover(15)  then
  218.     if lastRoll <> 0 then
  219.       set the castNum of sprite lastRoll to the number of cast lastCast
  220.     end if
  221.     set lastCast = "mm1Rt"
  222.     set lastRoll = 15
  223.     set the castNum of sprite 15 to the number of cast "mm1Up"
  224.     set the castNum of sprite 16 to the number of cast "quit"
  225.     if the mouseDown then
  226.       set the castNum of sprite 15 to the number of cast "mm1Dn"
  227.     end if
  228.   else
  229.     set the castNum of sprite lastRoll to the number of cast lastCast
  230.     set the castNum of sprite 16 to the number of cast A13
  231.     set lastRoll = 0
  232.   end if
  233.   
  234.   updateStage
  235. end mmhelpCheck
  236.  
  237. on goWhere
  238.   global helpMov, seeAlsoFlag
  239.   
  240.   if the clickOn = 13 then
  241.     updateStage
  242.     set seeAlsoFlag to TRUE
  243.     unloadCast
  244.     go to movie "FLWHI"
  245.   else if the clickOn = 14 then
  246.     updateStage
  247.     set seeAlsoFlag to TRUE
  248.     unloadCast
  249.     go to frame "hi001indiii°°°" of movie "FLWHI"
  250.   else if the clickOn = 15 then
  251.     set seeAlsoFlag to TRUE
  252.     updateStage
  253.     set helpMov = 0
  254.     unloadCast
  255.     go to frame "hi000quit00n°°" of movie "FLWHI"
  256.   end if
  257. end goWhere
  258.  
  259. on buttonState
  260.   global bFlag
  261.   if (the mouseV > 200) or ( bFlag = TRUE) then
  262.     doState
  263.   end if
  264. end buttonState
  265.  
  266.  
  267.  
  268.